﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ClienteRegistro.ascx.vb" Inherits="UserControl_RegistroCliente" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<link href="../Styles/CommonCSS.css" rel="stylesheet" />

    <div class="tittlecell">Datos del Cliente</div>
    <table>
            <tr>
                <td class="textright" style="width:80px">Tipo</td>
                <td class="textleft" style="width:420px">
                    <asp:DropDownList ID="ddlbTipoCliente" runat="server" CssClass="textleft" Width="150px" AutoPostBack="True"></asp:DropDownList></td>
            </tr>
            <tr>
                <td class="textright" style="width:80px">Documento</td>
                <td>
                    <asp:DropDownList ID="ddlbTipoDocumento" runat="server" CssClass="textleft" Width="150px">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="textright" style="width:80px">Número</td>
                <td>
                    <asp:TextBox ID="txbDocumento" runat="server" CssClass="textleft" Width="145px"></asp:TextBox>
                </td>
            </tr>
                </table>
    <asp:Panel ID="panelCliente" runat="server" Visible="False">
        <table>
            <tr><td class="textright" style="width:80px">Nombres </td>
                <td class="textleft">
                    <asp:TextBox ID="txbNombres" runat="server" CssClass="textleft" Width="300px"></asp:TextBox>
                </td></tr>
            <tr><td class="textright">Apellidos</td>
                <td class="textleft">
                    <asp:TextBox ID="txbApellidos" runat="server" CssClass="textleft" Width="300px"></asp:TextBox>
                </td></tr>
        </table>
        </asp:Panel>
    <asp:Panel ID="panelEmpresa" runat="server" Visible="False">
            <table>
                <tr><td class="textright" style="width:80px">Razón Social</td>
                    <td class="textleft">
                        <asp:TextBox ID="txbEmpresa" runat="server" CssClass="textleft" Width="420px"></asp:TextBox>
                    </td></tr>
                <tr>
                    <td class="textright">Página Web</td>
                    <td class="textleft">
                        <asp:TextBox ID="txbWeb" runat="server" CssClass="textleft" Width="420px"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </asp:Panel>
    <asp:Panel ID="panelSede" runat="server" Visible="False">
            <table>
                <tr><td class="textright" style="width:80px">&nbsp;</td>
                    <td class="textleft" colspan="3">
                        <asp:CheckBox ID="cbCondicionCliente" runat="server" Text="Omitir Pago Adelantado      " />
                        <asp:CheckBox ID="cbTienda" runat="server" Text="Es distribuidor" />
                    </td>
                </tr>
                <tr>
                    <td class="textright" style="width:80px">Sede</td>
                    <td class="textleft" colspan="3">
                        <asp:TextBox ID="txbSede" runat="server" CssClass="textleft" Width="420px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="textright">Dirección</td>
                    <td class="textleft" colspan="3">
                        <asp:TextBox ID="txbDireccion" runat="server" CssClass="textleft" Width="420px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="textright">Región</td>
                    <td class="textleft">
                        <asp:DropDownList ID="ddlbRegion" runat="server" AutoPostBack="True" CssClass="textleft" Width="255px">
                        </asp:DropDownList>
                    </td>
                    <td class="textright">Teléfono</td>
                    <td class="textleft">
                        <asp:TextBox ID="txbTelefono" runat="server" CssClass="textleft" Width="110px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="textright">Provincia</td>
                    <td class="textleft">
                        <asp:DropDownList ID="ddlbProvincia" runat="server" AutoPostBack="True" CssClass="textleft" Width="255px">
                        </asp:DropDownList>
                    </td>
                    <td class="textright">Anexo</td>
                    <td>
                        <asp:TextBox ID="txbAnexo" runat="server" CssClass="textleft" Width="110px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="textright">Distrito</td>
                    <td class="textleft">
                        <asp:DropDownList ID="ddlbDistrito" runat="server" CssClass="textleft" Width="255px">
                        </asp:DropDownList>
                    </td>
                    <td class="textright">Celular</td>
                    <td>
                        <asp:TextBox ID="txbCelular" runat="server" CssClass="textleft" Width="110px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="textright">Correo P.</td>
                    <td class="textleft" colspan="3">
                        <asp:TextBox ID="txbCorreo1" runat="server" CssClass="textleft" Width="420px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="textright">Correo A.</td>
                    <td class="textleft" colspan="3">
                        <asp:TextBox ID="txbCorreo2" runat="server" CssClass="textleft" Width="420px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="textright">&nbsp;</td>
                    <td colspan="3" class="textleft">
                        <asp:CheckBox ID="cbContacto" runat="server" AutoPostBack="True" Text="Adicionar Contacto" />
                    </td>
                </tr>
                <tr>
                    <td class="textright">&nbsp;</td>
                    <td class="textleft" colspan="3">
                        <asp:Label ID="LblCodigoCliente" runat="server" Visible="False"></asp:Label>
                        <asp:Label ID="LblCodigoContacto" runat="server" Visible="False"></asp:Label>
                        <asp:Label ID="LblCodigoSede" runat="server" Visible="False"></asp:Label>
                    </td>
                </tr>
            </table>
        </asp:Panel>
    <asp:Panel runat="server" ID="panelContacto" Visible="False">
            <table>
                <tr>
                    <td class="textright" style="width:80px">Apellidos</td>
                    <td class="textleft">
                        <asp:TextBox ID="txbApellidosContacto" runat="server" CssClass="textleft" Width="300px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="textright">Nombre</td>
                    <td class="textleft">
                        <asp:TextBox ID="txbNombresContacto" runat="server" CssClass="textleft" Width="300px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="textright">Teléfono</td>
                    <td class="textleft">
                        <asp:TextBox ID="txbTelefonoContacto" runat="server" CssClass="textleft" Width="300px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="textright">Correo</td>
                    <td class="textleft">
                        <asp:TextBox ID="txbCorreoContacto" runat="server" CssClass="textleft" Width="300px"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </asp:Panel>
    <br />
    <div class="textcenter" >
                <asp:ImageButton ID="ibtnGrabar" runat="server" ImageUrl="~/Images/texto/btnGrabar.png" style="height: 19px" />
            </div>
  

